#!/bin/bash

ipsec restart

# Root backup

if [ -r /etc/btrbk/root.conf ]  # Root test
then

sudo btrbk -c /etc/btrbk/root.conf -q run

fi

apt update
apt upgrade -y
apt-mark minimize-manual -y
apt autopurge -y
snap refresh

# Root backup

if [ -r /etc/btrbk/root.conf ]  # Root test
then

sudo btrbk -c /etc/btrbk/root.conf -q run

fi

#reboot
